﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CinemaProject
{
    class Movie
    {
        private int id;
        private string title;
        private string description;
        private decimal length;
        private string review;
        private string director;
        private string genre;

        public Movie(string title, string description, string length, string review, string director, string genre)
        {
            this.id = 0;
            this.title = title;
            this.description = description;
            this.length = Convert.ToDecimal(length);
            this.review = review;
            this.director = director;
            this.genre = genre;
        }

        public Movie(int id, string title, string description, string length, string review, string director, string genre)
        {
            this.id = id;
            this.title = title;
            this.description = description;
            this.length = Convert.ToDecimal(length);
            this.review = review;
            this.director = director;
            this.genre = genre;
        }

        public Movie()
        {
            this.id = 0;
            this.title = "";
            this.description = "";
            this.length = 0;
            this.review = "";
            this.director = "";
            this.genre = "";
        }

        #region get&set
              
        public string _title
        {
            get { return title; }
            set { title = value; }
        }

        public string _description
        {
            get { return description; }
            set { description = value; }
        }

        public int _id
        {
            get { return id; }
            set { id = value; }
        }

        public decimal _length
        {
            get { return length; }
            set { length = value; }
        }

        public string _review
        {
            get { return review; }
            set { review = value; }
        }

        public string _director
        {
            get { return director; }
            set { director = value; }
        }

        public string _genre
        {
            get { return genre; }
            set { genre = value; }
        }
        #endregion
    }
}
